<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <?php include_http_metas() ?>
        <?php include_metas() ?>
        <?php include_title() ?>

        <link href='http://fonts.googleapis.com/css?family=VT323&v1' rel='stylesheet' type='text/css'>
        <link href='http://fonts.googleapis.com/css?family=Droid+Sans&v1' rel='stylesheet' type='text/css' />
        <link rel="shortcut icon" href="/favicon.ico" />

        <?php include_stylesheets() ?>
        <?php include_javascripts() ?>

    </head>

    <body>
        <div id="header">
            <div class="wrapper">
                <?php echo link_to(image_tag('logo-infectamic'), '@homepage') ?>

                <h1>Infectamic</h1>

                <ul>
                    <?php if ($sf_user->isAuthenticated() === true): ?>

                        <li>@<?php echo $sf_user->getUsername() ?></li>
                        <li><?php echo link_to(__('Logout'), '@sf_guard_signout') ?></li>
                    <?php endif ?>

                    <li><?php echo link_to(__('Frontend'), cross_apps_link('frontend')) ?></li>
                    <li><?php echo link_to(__('Game'), cross_apps_link('game')) ?></li>
                </ul>
            </div>
        </div>

        <div id="nav">
            <div class="wrapper">
                <?php if ($sf_user->isAuthenticated() === true): ?>

                    <ul>
                        <?php foreach (sfConfig::get('app_nav_nav') as $nav): ?>

                            <li<?php echo (($sf_context->getModuleName() === $nav['module']) ? ' class="active"' : '') ?>>
                                <?php echo link_to($nav['text'], $nav['route']) ?>

                            </li>
                        <?php endforeach ?>

                    </ul>
                <?php endif ?>

            </div>
        </div>

        <div id="content">
            <div class="wrapper">
                <?php echo $sf_content ?>

            </div>
        </div>

        <div class="break">
        </div>

        <div id="footer">
            <div class="wrapper">
                <ul>
                    <li><?php echo link_to('GoldZone Web', 'http://www.goldzoneweb.info', array ('title' => __('French web hosting'))) ?></li>
                    <li><?php echo link_to('Google code', 'http://code.google.com/p/infectamic/', array ('title' => __('Project hosting: sources, documentation and issue tracking'))) ?></li>
                    <li><?php echo link_to('Twitter', 'https://twitter.com/#!/search/%23infectamic', array ('title' => __('#infectamic topic on Twitter'))) ?></li>
                </ul>
            </div>
        </div>
    </body>
</html>
